
#ifndef		__TILE_H
#define		__TILE_H

#include "Surface.h"
#include "Tileset.h"

class Tile {

	private:
		SDL_Surface* tilesetSurface;
		SDL_Rect currentTileRect;
		
		int tileNum;

		Tileset* tileset;

	public:
		Tile();

		bool init(Tileset* _tileset, SDL_Surface* tilesetImage);
		void loop();
		void render(SDL_Surface*,int x, int y);
		void cleanup();

		void setType(int t);
		int getType(){ return tileNum; }
};

#endif
